package com.fz.us.oa.core.entity.com;

import com.fz.us.admin.company.entity.BaseFlowEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by ZhuChunXiao on 2017/5/22.
 * 续约申请
 */
@Entity
@Table(name="ec_renewal")
public class Renewal extends BaseFlowEntity {
    private static final long serialVersionUID = -1086208786768160984L;
    /**
     * 人事信息表
     */
    private PersonnelInfo personnelInfo;
    /**
     * 原合同开始日期
     */
    private Date oldDateStart;
    /**
     * 原合同结束日期
     */
    private Date oldDateEnd;
    /**
     * 续签合同开始日期
     */
    private Date renewalDateStart;
    /**
     * 续签合同结束日期
     */
    private Date renewalDateEnd;
    /**
     * 备注
     */
    private String remarks;
    /**
     * 异动管理
     */
    private AllChange allChange;

    @ManyToOne(fetch = FetchType.LAZY)
    public PersonnelInfo getPersonnelInfo() {
        return personnelInfo;
    }

    public void setPersonnelInfo(PersonnelInfo personnelInfo) {
        this.personnelInfo = personnelInfo;
    }

    public Date getRenewalDateStart() {
        return renewalDateStart;
    }

    public void setRenewalDateStart(Date renewalDateStart) {
        this.renewalDateStart = renewalDateStart;
    }

    public Date getRenewalDateEnd() {
        return renewalDateEnd;
    }

    public void setRenewalDateEnd(Date renewalDateEnd) {
        this.renewalDateEnd = renewalDateEnd;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Date getOldDateStart() {
        return oldDateStart;
    }

    public void setOldDateStart(Date oldDateStart) {
        this.oldDateStart = oldDateStart;
    }

    public Date getOldDateEnd() {
        return oldDateEnd;
    }

    public void setOldDateEnd(Date oldDateEnd) {
        this.oldDateEnd = oldDateEnd;
    }

    @OneToOne(fetch = FetchType.LAZY)
    public AllChange getAllChange() {
        return allChange;
    }

    public void setAllChange(AllChange allChange) {
        this.allChange = allChange;
    }

}
